package com.geeksaga.common.util;

import java.io.File;

import javax.servlet.ServletContext;

/**
 * @author newbie
 * @since 0.1
 */
public class CommonUtil {
    public static String getRealPath(ServletContext context) {
        return context.getRealPath(File.separator);
    }
    
    public static String getRealPath(ServletContext context, String path) {
        return getRealPath(context).concat(path);
    }
    
    public static String getRealPath(ServletContext context, String path, String fileName) {
        return getRealPath(context).concat(path).concat(fileName);
    }
}